package model

func ReleaseHouse(house House) House {
	db.Create(&house)
	return house
}
func AddsHouseFacilityS(houseFacility HouseFacility) HouseFacility {
	db.Create(&houseFacility)
	return houseFacility
}
func AddFacility(facility Facility) Facility {
	newFacility := Facility{}
	db.Where(facility).Save(&newFacility)
	return newFacility
}
func AddHouseFacility(houseFacility HouseFacility) HouseFacility {
	newHouseFacility := HouseFacility{}
	db.Where(houseFacility).Save(&newHouseFacility)
	return newHouseFacility
}
func AddArea(area Area) Area {
	newArea := Area{}
	db.Where(area).Save(&newArea)
	return newArea
}
